package com.learning.rpc.rpc;

import java.util.StringJoiner;

/**
 * ClassName: Response
 * Description: 响应
 * Date: 2022/5/10 23:32 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class Response {
    private long requestId;
    private int status;
    private Object content;

    public long getRequestId() {
        return requestId;
    }

    public void setRequestId(long requestId) {
        this.requestId = requestId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Response.class.getSimpleName() + "[", "]")
                .add("requestId=" + requestId)
                .add("status=" + status)
                .add("content=" + content)
                .toString();
    }
}
